import { url } from '@/config';
import request from '../axios'
// 用户分享的和被分享的内容列表
export const userSharedList = (type) => request({
  url: url + '/visual/share/list-users',
  method: 'get',
  params:{
    type
  }
})

export const share2User = (data) => request({
  url: url + '/visual/share/to-user',
  method: 'post',
  data
});

export const removeShare = (data) => request({
  url: url + '/visual/share/remove',
  method: 'post',
  data
});
